﻿using System.ComponentModel;

namespace WorkTool2.Classes.Data
{
    public class GitCommitRecord(string shortCommitId, string commitId, string message, string commitDate)
    {
        /// <summary>
        /// 提交对象（commit）的简短哈希字符串
        /// </summary>
        [Description("简短提交id")]
        public string ShortCommitId { get; set; } = shortCommitId;

        /// <summary>
        /// 提交对象（commit）的完整哈希字符串
        /// </summary>
        [Description("完整提交id")]
        public string CommitId { get; set; } = commitId;

        /// <summary>
        /// 提交信息
        /// </summary>
        [Description("提交信息")]
        public string Message { get; set; } = message;

        /// <summary>
        /// 提交日期
        /// </summary>
        [Description("提交日期")]
        public string CommitDate { get; set; } = commitDate;
    }
}